/*************************************************************************
    > File Name: book.cpp
    > Author: skylon
    > Site: blog.csdn.net/tcm_zhangpeng  
    > Created Time: 2016年05月14日 星期六 21时46分05秒
 ************************************************************************/

#include"book.h"

book::book(string b_id, string b_n, string au, string pu, double pr)	//	constructor
{
	book_ID = b_id;
	book_name = b_n;
	author = au;
	publishing = pu;
	price = pr;
}

book::book()
{
	book_ID = "";
	book_name = "";
	author = "";
	publishing = "";
	price = 0.0;
}

void book::display()
{
	cout << "book_ID: " << book_ID << "\t";
	cout << "book_name: " << book_name << "\t";
	cout << "author: " << author << "\t";
	cout << "publishing: " << publishing << "\t";
	cout << "price: " << price << "\t";
	cout << "\n\n";
}

string book::getbook_ID()	//	get ID of book
{
	return book_ID;
}

string book::getbook_name()	//	get name of book
{
	return book_name;
}

string book::getauthor()	//	get author of book
{
	return author;
}

double book::getprice()	//	get price of book
{
	return price;
}



